import requests

import config


# 接口对象层
class IhrmLoginApi(object):

    @classmethod
    def login(cls, json_data):
        # 登录
        url = config.IHRM_URL + "/api/sys/login"
        header = {"Context-Type": "application"}
        resp = requests.post(url=url, headers=header, json=json_data)
        return resp


